// pages/service/service.js
Page({

  /**
   * 页面的初始数据
   */

  data: {
    time: 1,
    progress: "../../images/progress",
    status: ['制定提纲', '进行访谈', '收录照片', '转换文字',
      '排版设计', '三审三校', '成书送达', '增值服务'
    ],
    nextdis: false,
    beforedis: true
  },
  next: function (e) {
    this.setData({
      time: this.data.time + 1,
      beforedis: false
    })
    if (this.data.time == 8) {
      this.setData({
        nextdis: true
      })
    } else {
      this.setData({
        nextdis: false
      })
    }
  },
  before: function (e) {
    this.setData({
      time: this.data.time - 1,
      nextdis: false
    })
    if (this.data.time == 1) {
      this.setData({
        beforedis: true
      })
    } else {
      this.setData({
        beforedis: false
      })
    }
  }



})